コード例 #1
0
ファイル: test_cluster.py プロジェクト: germangirl/python-oca
 def test_remove(self):
     self.client.call = Mock(return_value='')
     c = Cluster(self.xml, self.client)
     assert c.remove(2) is None
コード例 #2
0
ファイル: test_cluster.py プロジェクト: germangirl/python-oca
 def test_repr(self):
     c = Cluster(self.xml, self.client)
     assert c.__repr__() == '<oca.Cluster("Production")>'
コード例 #3
0
ファイル: test_cluster.py プロジェクト: germangirl/python-oca
 def test_allocate(self):
     self.client.call = Mock(return_value=5)
     assert Cluster.allocate(self.client, self.xml) == 5