def test_returns_arch_override(self): with open_mock(content="hello_arch"): arch = collector.get_arch(prefix="/does/not/exist") self.assertEqual("hello_arch", arch)
def test_get_arch(self): self.assertEqual(platform.machine(), collector.get_arch())
def test_returns_arch(self, mock_machine): mock_machine.return_value = "hello_arch" arch = collector.get_arch() self.assertEqual("hello_arch", arch)