| Total Complexity | 5 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | #!/usr/bin/env python |
||
| 16 | class TestSerializationAcceptance(AbstractAcceptanceTest): |
||
| 17 | |||
| 18 | def _repo_id(self): |
||
| 19 | return 'test-serialization-acceptance' |
||
| 20 | |||
| 21 | def test_cross_hooks_context(self): |
||
| 22 | """ |
||
| 23 | context can be updated from a hook to another |
||
| 24 | """ |
||
| 25 | template = 'crosshooks' |
||
| 26 | self.run(template) |
||
| 27 | assert os.path.exists(os.path.join(self.project_dir, template)) |
||
| 28 | |||
| 29 | def test_custom_serializer(self): |
||
| 30 | """ |
||
| 31 | context can be updated from a hook to another |
||
| 32 | """ |
||
| 33 | template = 'custom_serializer' |
||
| 34 | self.run(template) |
||
| 35 | assert os.path.exists(os.path.join(self.project_dir, 'COPY')) |
||
| 36 |