예제 #1
0
 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)
예제 #2
0
 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)