コード例 #1
0
 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)
コード例 #2
0
 def test_get_arch(self):
     self.assertEqual(platform.machine(), collector.get_arch())
コード例 #3
0
 def test_returns_arch(self, mock_machine):
     mock_machine.return_value = "hello_arch"
     arch = collector.get_arch()
     self.assertEqual("hello_arch", arch)