(self)
| 986 | r1postfix='', r2postfix='') |
| 987 | |
| 988 | def test_no_r2postfix(self): |
| 989 | # Basic test of join_by no_r2postfix |
| 990 | a, b = self.a, self.b |
| 991 | |
| 992 | test = join_by( |
| 993 | 'a', a, b, r1postfix='1', r2postfix='', jointype='inner') |
| 994 | control = np.array([(0, 50, 65, 100, 100), (1, 51, 66, 101, 101), |
| 995 | (2, 52, 67, 102, 102), (3, 53, 68, 103, 103), |
| 996 | (4, 54, 69, 104, 104), (5, 55, 70, 105, 105), |
| 997 | (6, 56, 71, 106, 106), (7, 57, 72, 107, 107), |
| 998 | (8, 58, 73, 108, 108), (9, 59, 74, 109, 109)], |
| 999 | dtype=[('a', int), ('b1', int), ('b', int), |
| 1000 | ('c', int), ('d', int)]) |
| 1001 | assert_equal(test, control) |
| 1002 | |
| 1003 | def test_two_keys_two_vars(self): |
| 1004 | a = np.array(list(zip(np.tile([10, 11], 5), np.repeat(np.arange(5), 2), |
nothing calls this directly
no test coverage detected