def test_add_ep_np(self): r = Conj([], [1, 2]) c = Conj([[1, 2]]) c.add_np(1) self.assertEqual(r, c) c = Conj([], [1]) c.add_ep([1, 2]) self.assertEqual(r, c)
def test_add_np(self): c = Conj() c.add_np(1) c.add_np(2) c.add_np(1) self.assertEqual({1, 2}, c.np)