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
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
def test_heartbeat(self): o = Ordering() assert o.heartbeat() == True