def test_put_remove(self): ps = PowerSet() ps.put('123') ps.put('546') ps.remove('546') data = ps.list_value() res = ['123'] self.assertEqual(data, res)
def test_put_remove_step(self): ps = PowerSet() ps.put('0') ps.put(':') ps.put('D') ps.remove(':') data = sorted(ps.list_value()) res = sorted(['0', 'D']) self.assertEqual(data, res)