def test_split(self): split = r.get_splits(self.single_stock)[0] assert (split['instrument'] == self.instrument) fake_split = r.get_splits(self.fake_stock) assert (len(fake_split) == 0)
def test_split(self): split = r.get_splits(self.single_stock)[0] self.assertEqual(split['instrument'], self.instrument) fake_split = r.get_splits(self.fake_stock) self.assertEqual(len(fake_split), 0)