Conditions | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | #!/usr/bin/env python |
||
23 | def assert_real_hook_is_run_in_place(self, template): |
||
24 | """ |
||
25 | assert that the real hook is run in place |
||
26 | :param template: template id |
||
27 | """ |
||
28 | template_dir = os.path.join(self.templates_path, template) |
||
29 | file = os.path.join(self.project_dir, template) |
||
30 | self.run(template) |
||
31 | assert os.path.exists(file) |
||
32 | content = read_file(file) |
||
33 | assert template_dir == content.strip() |
||
34 | |||
55 |