示例#1
0
 def test_heartbeat_failure(self):
     # mock requests.get so that we get a result for which response.json() will throw an exception
     with patch('gbdxtools.ordering.requests.get', return_value = False) as mock_within:
         o = Ordering()
         assert o.heartbeat() == False
示例#2
0
 def test_heartbeat_failure(self):
     # mock requests.get so that we get a result for which response.json() will throw an exception
     with patch('gbdxtools.ordering.requests.get',
                return_value=False) as mock_within:
         o = Ordering()
         assert o.heartbeat() == False
示例#3
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True
示例#4
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True