Exemplo n.º 1
0
 def test_has_false(self):
     assert shackles.has(obj, 'e.b') == False
Exemplo n.º 2
0
 def test_has_list(self):
     assert shackles.has(obj, ['a','b']) == True
     assert shackles.has(obj, ['a','b','name']) == True
Exemplo n.º 3
0
 def test_has_tuple(self):
     assert shackles.has(obj, ('a','b')) == True
     assert shackles.has(obj, ('a','b','name')) == True
Exemplo n.º 4
0
 def test_has_str(self):
     assert shackles.has(obj, 'a.b') == True
     assert shackles.has(obj, 'a.b.name') == True
Exemplo n.º 5
0
 def test_has_false(self):
     assert shackles.has(self.obj, 'e.b') == False
Exemplo n.º 6
0
 def test_has_tuple(self):
     assert shackles.has(self.obj, ('a', 'b')) == True
     assert shackles.has(self.obj, ('a', 'b', 'name')) == True
Exemplo n.º 7
0
 def test_has_list(self):
     assert shackles.has(self.obj, ['a', 'b']) == True
     assert shackles.has(self.obj, ['a', 'b', 'name']) == True
Exemplo n.º 8
0
 def test_has_str(self):
     assert shackles.has(self.obj, 'a.b') == True
     assert shackles.has(self.obj, 'a.b.name') == True