예제 #1
0
 def test_get_arch_success(self, m_lock):
     m_lock.list_locks.return_value = [{"arch": "arch"}]
     result = suite.get_arch('magna')
     m_lock.list_locks.assert_called_with(
         machine_type="magna",
         count=1
     )
     assert result == "arch"
예제 #2
0
 def test_get_arch_success(self, m_lock):
     m_lock.list_locks.return_value = [{"arch": "arch"}]
     result = suite.get_arch('magna')
     m_lock.list_locks.assert_called_with(
         machine_type="magna",
         count=1
     )
     assert result == "arch"
예제 #3
0
 def test_get_arch_fail(self, m_lock):
     m_lock.list_locks.return_value = False
     suite.get_arch('magna')
     m_lock.list_locks.assert_called_with(machine_type="magna", count=1)
예제 #4
0
 def test_get_arch_fail(self, m_lock):
     m_lock.list_locks.return_value = False
     suite.get_arch('magna')
     m_lock.list_locks.assert_called_with(machine_type="magna", count=1)