def test_sefofsetofstr(self): self.assertEqual( '{{a, b, c}, {d, e}}', letstr({frozenset({'a', 'b', 'c'}), frozenset({'d', 'e'})}))
def test_tupleofesefofstr(self): self.assertEqual('(d, {a, b, c})', letstr(({'a', 'b', 'c'}, 'd')))
def test_listofesefofstr(self): self.assertEqual('[(d), e, {a, b, c}]', letstr([{'a', 'b', 'c'}, ('d', ), 'e']))
def test_sefofstr(self): self.assertEqual('{a, b, c}', letstr({'a', 'b', 'c'}))
def test_emptyfrozenset(self): self.assertEqual('{}', letstr(frozenset()))
def test_emptyset(self): self.assertEqual('{}', letstr(set()))
def test_obj(self): class AClass: def __repr__(self): return 'AClass' self.assertEqual('AClass', letstr(AClass()))
def test_str(self): self.assertEqual('test', letstr('test'))