Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/w/i/wight-cli-0.2.2/tests/acceptance/test_default.py   wight-cli(Download)
    def test_can_set_team(self):
        result = self.execute("default-set", team=self.team)
        expected = "Default team set to '%s'. Default project not set." % self.team
        expect(result).to_be_like(expected)
        ud = UserData.load()
        expect(ud.team).to_be_like(self.team)
 
    def test_can_set_project(self):
        result = self.execute("default-set", project=self.project)
    def test_can_set_team_and_project(self):
        result = self.execute("default-set", team=self.team, project=self.project)
        expected = "Default team set to '%s'. Default project set to '%s'." % (self.team, self.project)
        expect(result).to_be_like(expected)
        ud = UserData.load()
        expect(ud.team).to_be_like(self.team)
        expect(ud.project).to_be_like(self.project)
 
    def test_get_return_not_set(self):
        result = self.execute("default-get")
    def test_get_return_team_only(self):
        self.execute("default-set", team=self.team)
        result = self.execute("default-get")
        expected = "Default team is '%s'. Default project not set." % self.team
        expect(result).to_be_like(expected)

src/w/i/wight-cli-0.2.2/tests/acceptance/test_target.py   wight-cli(Download)
    def test_can_set_target(self):
        target = "http://my-test-target:2324"
 
        # Set target to acc target
        result = self.execute("target-set", target)
    def test_can_get_empty_target(self):
        self.clear_user_data()
 
        # Get target
        result = self.execute("target-get")
        expect(result).to_be_like("No target set.")
 
    def test_can_get_target(self):
        # Get target
        result = self.execute("target-get")