~ubuntuone-hackers/conn-check/trunk

« back to all changes in this revision

Viewing changes to tests.py

  • Committer: James Westby
  • Date: 2014-07-24 21:09:27 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@canonical.com-20140724210927-fvmq378r9jtfbo7n
Rename the check to http.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        result = conn_check.make_udp_check('localhost', 8080, 'foo', 'bar')
89
89
        self.assertThat(result, FunctionCheckMatcher('udp.localhost:8080', 'localhost:8080'))
90
90
 
91
 
    def test_make_url_check(self):
92
 
        result = conn_check.make_url_check('http://localhost/')
 
91
    def test_make_http_check(self):
 
92
        result = conn_check.make_http_check('http://localhost/')
93
93
        self.assertThat(result,
94
94
            MultiCheckMatcher(strategy=conn_check.sequential_strategy,
95
95
                subchecks=[
98
98
                ]
99
99
            ))
100
100
 
101
 
    def test_make_url_check_https(self):
102
 
        result = conn_check.make_url_check('https://localhost/')
 
101
    def test_make_http_check_https(self):
 
102
        result = conn_check.make_http_check('https://localhost/')
103
103
        self.assertThat(result,
104
104
            MultiCheckMatcher(strategy=conn_check.sequential_strategy,
105
105
                subchecks=[