def test_from_spec_owner_and_channel(self): spec = 'testing_owner/channels/my_channel' os.environ['BINSTAR_TOKEN'] = 'a test token' dest = AnacondaClientChannelDest.from_spec(spec) self.assertEqual(dest.token, 'a test token') self.assertEqual(dest.owner, 'testing_owner') self.assertEqual(dest.channel, 'my_channel')