Beispiel #1
0
    def test_givenPoutyneVersion1_1_dev_givenValidPoutyneVersion_thenReturnFalse(
            self, poutyne_mock):
        poutyne_mock.version.__version__ = "1.1.dev1+81b3c7b"

        actual = valid_poutyne_version()
        self.assertFalse(actual)
Beispiel #2
0
    def test_givenPoutyneVersion1_2_givenValidPoutyneVersion_thenReturnTrue(
            self, poutyne_mock):
        poutyne_mock.version.__version__ = "1.2"

        actual = valid_poutyne_version()
        self.assertTrue(actual)