'Verify the pretty-printing of sets'

def test_sets(self):

    self.assertGdbRepr(set())
    rep = self.get_gdb_repr("print    set(['a',    'b'])")[0]
    self.assertTrue(rep.startswith('set(['))
    self.assertTrue(rep.endswith('])'))
    self.assertEqual(eval(rep), {'a', 'b'})
    rep = self.get_gdb_repr('print    set([4,    5])')[0]
    self.assertTrue(rep.startswith('set(['))
    self.assertTrue(rep.endswith('])'))
    self.assertEqual(eval(rep), {4, 5})
    (gdb_repr, gdb_output) = self.get_gdb_repr("s    =    set(['a','b'])\ns.pop()\nprint    s")
    self.assertEqual(gdb_repr, "set(['b'])")
