예제 #1
0
 def test_return_correct_data(self, fetch_allthethings_data):
     """get_SETA_info should return a list with correct SETA iterval for given buildername."""
     fetch_allthethings_data.return_value = ALLTHETHINGS
     assert get_SETA_info(
         "Windows 7 VM 32-bit mozilla-inbound opt test mochitest-2") == [
             8, 3600
         ]  # flake8: noqa
예제 #2
0
 def test_return_correct_data(self, fetch_allthethings_data):
     """get_SETA_info should return a list with correct SETA iterval for given buildername."""
     fetch_allthethings_data.return_value = MOCK_ALLTHETHINGS
     self.assertEquals(
         get_SETA_info("Rev4 MacOSX Snow Leopard 10.6 fx-team debug test cppunit"),
         [7, 3600]
     )
예제 #3
0
def get_maxRevisions(buildername):
    return get_SETA_info(buildername)
예제 #4
0
 def test_return_correct_data(self, fetch_allthethings_data):
     """get_SETA_info should return a list with correct SETA iterval for given buildername."""
     fetch_allthethings_data.return_value = ALLTHETHINGS
     assert get_SETA_info("Windows 7 VM 32-bit mozilla-inbound opt test mochitest-2") == [8, 3600]  # flake8: noqa
예제 #5
0
 def test_return_correct_data(self, fetch_allthethings_data):
     """get_SETA_info should return a list with correct SETA iterval for given buildername."""
     fetch_allthethings_data.return_value = ALLTHETHINGS
     assert get_SETA_info(
         "Ubuntu VM 12.04 x64 fx-team opt test mochitest-2") == [7, 3600]
예제 #6
0
 def test_return_correct_data(self, fetch_allthethings_data):
     """get_SETA_info should return a list with correct SETA iterval for given buildername."""
     fetch_allthethings_data.return_value = ALLTHETHINGS
     assert get_SETA_info("Ubuntu VM 12.04 x64 fx-team opt test mochitest-2") == [7, 3600]