'Test representation of NumDicts'

def test_repr(self):

    dict_0 = {}
    dict_1 = {1: u'Elephant'}
    dict_2 = {1: u'Elephant', 2: u'Mouse'}
    dict_3 = {u'3': u'Aardvark'}
    dict_4 = {u'3': u'Aardvark', u'4': u'Ant'}
    dict_5 = {5: u'Cat', u'6': u'Dog'}
    dict_6 = {1: None, u'2': None}
    dict_7 = {None: u'Empty'}
    num_dict = NumDict()
    num_dict_0 = NumDict(dict_0)
    num_dict_1 = NumDict(dict_1)
    num_dict_2 = NumDict(dict_2)
    num_dict_3 = NumDict(dict_3)
    num_dict_4 = NumDict(dict_4)
    num_dict_5 = NumDict(dict_5)
    num_dict_6 = NumDict(dict_6)
    num_dict_7 = NumDict(dict_7)
    reps = (u'{}', u"{1:    u'Elephant'}", u"{1:    u'Elephant',    2:    u'Mouse'}", u"'3':    u'Aardvark'", u"{'3':    u'Aardvark',    '4':    u'Ant'}", u"{5:    u'Cat',    '6':    u'Dog'}", u"{1:    None,    '2':    None}", u"{None:    u'Empty'}")
    self.assertEqual(six.text_type(num_dict), six.text_type({}))
    self.assertEqual(repr(num_dict), repr({}))
    self.assertIn(repr(num_dict), reps)
    self.assertEqual(six.text_type(num_dict_0), six.text_type(dict_0))
    self.assertEqual(repr(num_dict_0), repr(dict_0))
    self.assertIn(repr(num_dict_0), reps)
    self.assertEqual(six.text_type(num_dict_1), six.text_type(dict_1))
    self.assertEqual(repr(num_dict_1), repr(dict_1))
    self.assertIn(repr(num_dict_1), reps)
    self.assertEqual(six.text_type(num_dict_2), six.text_type(dict_2))
    self.assertEqual(repr(num_dict_2), repr(dict_2))
    self.assertIn(repr(num_dict_2), reps)
    self.assertNotEqual(six.text_type(num_dict_3), six.text_type(dict_3))
    self.assertNotEqual(repr(num_dict_3), repr(dict_3))
    self.assertNotIn(repr(num_dict_3), reps)
    self.assertNotEqual(six.text_type(num_dict_4), six.text_type(dict_4))
    self.assertNotEqual(repr(num_dict_4), repr(dict_4))
    self.assertNotIn(repr(num_dict_4), reps)
    self.assertNotEqual(six.text_type(num_dict_5), six.text_type(dict_5))
    self.assertNotEqual(repr(num_dict_5), repr(dict_5))
    self.assertNotIn(repr(num_dict_5), reps)
    self.assertNotEqual(six.text_type(num_dict_6), six.text_type(dict_6))
    self.assertNotEqual(repr(num_dict_6), repr(dict_6))
    self.assertNotIn(repr(num_dict_6), reps)
    self.assertEqual(six.text_type(num_dict_7), six.text_type(dict_7))
    self.assertEqual(repr(num_dict_7), repr(dict_7))
    self.assertIn(repr(num_dict_7), reps)
