コード例 #1
0
 def test_mac_nightly(self):
     filename = "rustc-nightly-i686-apple-darwin.tar.gz"
     channel = "nightly"
     result = v2.decompose_name(filename, channel)
     self.assertEqual(result, ("i686-apple-darwin", "rustc"))
コード例 #2
0
 def test_wrong_channel(self):
     filename = "rustc-nightly-i686-apple-darwin.tar.gz"
     channel = "beta"
     result = v2.decompose_name(filename, channel)
     self.assertEqual(result, None)