コード例 #1
0
ファイル: test_shackles.py プロジェクト: barberj/shackles
 def test_has_false(self):
     assert shackles.has(obj, 'e.b') == False
コード例 #2
0
ファイル: test_shackles.py プロジェクト: barberj/shackles
 def test_has_list(self):
     assert shackles.has(obj, ['a','b']) == True
     assert shackles.has(obj, ['a','b','name']) == True
コード例 #3
0
ファイル: test_shackles.py プロジェクト: barberj/shackles
 def test_has_tuple(self):
     assert shackles.has(obj, ('a','b')) == True
     assert shackles.has(obj, ('a','b','name')) == True
コード例 #4
0
ファイル: test_shackles.py プロジェクト: barberj/shackles
 def test_has_str(self):
     assert shackles.has(obj, 'a.b') == True
     assert shackles.has(obj, 'a.b.name') == True
コード例 #5
0
 def test_has_false(self):
     assert shackles.has(self.obj, 'e.b') == False
コード例 #6
0
 def test_has_tuple(self):
     assert shackles.has(self.obj, ('a', 'b')) == True
     assert shackles.has(self.obj, ('a', 'b', 'name')) == True
コード例 #7
0
 def test_has_list(self):
     assert shackles.has(self.obj, ['a', 'b']) == True
     assert shackles.has(self.obj, ['a', 'b', 'name']) == True
コード例 #8
0
 def test_has_str(self):
     assert shackles.has(self.obj, 'a.b') == True
     assert shackles.has(self.obj, 'a.b.name') == True