Пример #1
0
def test_subKeySearch():
    assert Search.subKeySearch(data, "stC-3-") == subKeySearchAnswear
    assert Search.subKeySearch(data, "gns@otgnbs@eoutbjnr@[irn") == []
Пример #2
0
def test_endValueSearch():
    assert Search.endValueSearch(data, "Dict6") == endValueSearchAnswear
    assert Search.endValueSearch(data, "ga@oubvaourb@iu") == []
Пример #3
0
def test_keySearch():
    assert Search.keySearch(data, "2.5") == keySearchAnswear
    assert Search.keySearch(data, "anva@urav@u@ub") == []
Пример #4
0
def test_subValueSearch():
    assert Search.subValueSearch(data, "list") == subValueSearchAnswear
    assert Search.subValueSearch(data, "lisgpewbu@piub4er") == []
Пример #5
0
def test_startValueSearch():
    assert Search.startValueSearch(data, "listIn") == startValueSearchAnswear
    assert Search.startValueSearch(data, "gh@reaugaburgbe@ru") == []
Пример #6
0
def test_getAll():
    assert Search.getAll(data) == getAllAnswear
Пример #7
0
def test_valueSearch():
    assert Search.valueSearch(data, "listInDict6") == valueSearchAnswear
    assert Search.valueSearch(data, "listInDict6gbar@urba@") == []
Пример #8
0
 def test_subKeySearch(self):
     self.assertEqual(subKeySearchAnswear,
                      Search.subKeySearch(data, "stC-3-"))
     self.assertEqual([],
                      Search.subKeySearch(data, "gns@otgnbs@eoutbjnr@[irn"))
Пример #9
0
def test_typeSearch():
    assert Search.typeSearch(data, str) == typeSearchAnswer
Пример #10
0
 def test_endValueSearch(self):
     self.assertEqual(endValueSearchAnswear,
                      Search.endValueSearch(data, "Dict6"))
     self.assertEqual([], Search.endValueSearch(data, "ga@oubvaourb@iu"))
Пример #11
0
 def test_keySearch(self):
     self.assertEqual(keySearchAnswear, Search.keySearch(data, "2.5"))
     self.assertEqual([], Search.keySearch(data, "anva@urav@u@ub"))
Пример #12
0
 def test_startValueSearch(self):
     self.assertEqual(startValueSearchAnswear,
                      Search.startValueSearch(data, "listIn"))
     self.assertEqual([], Search.startValueSearch(data,
                                                  "gh@reaugaburgbe@ru"))
Пример #13
0
 def test_subValueSearch(self):
     self.assertEqual(subValueSearchAnswear,
                      Search.subValueSearch(data, "list"))
     self.assertEqual([], Search.subValueSearch(data, "lisgpewbu@piub4er"))
Пример #14
0
 def test_valueSearch(self):
     self.assertEqual(valueSearchAnswear,
                      Search.valueSearch(data, "listInDict6"))
     self.assertEqual([], Search.valueSearch(data, "listInDict6gbar@urba@"))
Пример #15
0
 def test_getAll(self):
     self.assertEqual(getAllAnswear, Search.getAll(data))
Пример #16
0
 def test_typeSearch(self):
     self.assertEqual(typeSearchAnswer, Search.typeSearch(data, str))