(self)
| 968 | dtype=[('a', int), ('b', int), ('d', int)]) |
| 969 | |
| 970 | def test_no_r1postfix(self): |
| 971 | # Basic test of join_by no_r1postfix |
| 972 | a, b = self.a, self.b |
| 973 | |
| 974 | test = join_by( |
| 975 | 'a', a, b, r1postfix='', r2postfix='2', jointype='inner') |
| 976 | control = np.array([(0, 50, 65, 100, 100), (1, 51, 66, 101, 101), |
| 977 | (2, 52, 67, 102, 102), (3, 53, 68, 103, 103), |
| 978 | (4, 54, 69, 104, 104), (5, 55, 70, 105, 105), |
| 979 | (6, 56, 71, 106, 106), (7, 57, 72, 107, 107), |
| 980 | (8, 58, 73, 108, 108), (9, 59, 74, 109, 109)], |
| 981 | dtype=[('a', int), ('b', int), ('b2', int), |
| 982 | ('c', int), ('d', int)]) |
| 983 | assert_equal(test, control) |
| 984 | |
| 985 | def test_no_postfix(self): |
| 986 | assert_raises(ValueError, join_by, 'a', self.a, self.b, |
nothing calls this directly
no test coverage detected