예제 #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)