'Test rich comparison and length'

def test_rich_comparison_and_len(self):

    dict_0 = {}
    dict_1 = {1: u'Elephant'}
    dict_2 = {1: u'Elephant', 2: u'Mouse'}
    num_dict = NumDict()
    num_dict_0 = NumDict(dict_0)
    num_dict_1 = NumDict(dict_1)
    num_dict_2 = NumDict(dict_2)
    num_dict_from_num_dict = NumDict(num_dict)
    num_dict_from_num_dict_0 = NumDict(num_dict_0)
    num_dict_from_num_dict_1 = NumDict(num_dict_1)
    num_dict_from_num_dict_2 = NumDict(num_dict_2)
    all_dicts = [dict_0, dict_1, dict_2, num_dict, num_dict_0, num_dict_1, num_dict_2, num_dict_from_num_dict, num_dict_from_num_dict_0, num_dict_from_num_dict_1, num_dict_from_num_dict_2]
    for val_a in all_dicts:
        for val_b in all_dicts:
            self.assertEqual((val_a == val_b), (len(val_a) == len(val_b)))
