def test_get_current_missing_file(self): # Arrange factory = SystemPackageManagerHandlerFactory() # Act os_type = factory.get_current() # Assert self.assertIsNone(os_type)
def test_get_current_ubuntu(self): # Arrange factory = SystemPackageManagerHandlerFactory() # Act os_type = factory.get_current() # Assert self.assertEqual(os_type, 'ubuntu')