def test_subsets_should_return_non_empty_subsets(self): result = tuple(subsets(frozenset(['beer', 'rice']))) self.assertEqual(result[0], ('beer', )) self.assertEqual(result[1], ('rice', )) self.assertEqual(result[2], ( 'beer', 'rice', ))
def test_subsets_should_return_non_empty_subsets(self): result = tuple(subsets(frozenset(['beer', 'rice']))) self.assertEqual(result[0], ('beer',)) self.assertEqual(result[1], ('rice',)) self.assertEqual(result[2], ('beer', 'rice',))
def test_subsets_should_return_empty_subsets_if_input_empty_set(self): result = tuple(subsets(frozenset([]))) self.assertEqual(result, ())