| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 10 | def test_locations(self): |
||
| 11 | sampler = GridSampler(self.sample, (5, 20, 20), (1, 2, 3)) |
||
| 12 | fixture = [ |
||
| 13 | [0, 0, 0, 5, 20, 20], |
||
| 14 | [0, 0, 10, 5, 20, 30], |
||
| 15 | [0, 0, 5, 5, 20, 25], |
||
| 16 | [3, 0, 0, 8, 20, 20], |
||
| 17 | [3, 0, 10, 8, 20, 30], |
||
| 18 | [3, 0, 5, 8, 20, 25], |
||
| 19 | [5, 0, 0, 10, 20, 20], |
||
| 20 | [5, 0, 10, 10, 20, 30], |
||
| 21 | [5, 0, 5, 10, 20, 25], |
||
| 22 | ] |
||
| 23 | self.assertEqual(sampler.locations.tolist(), fixture) |
||
| 24 | |||
| 33 |