Did I find the right examples for you? yes no

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

src/w/e/webcompare-HEAD/tests.py   webcompare(Download)
    def test___init__origin(self):
        r = self.Result("originurl", 666, origin_time=42.0)
        self.assertEquals(r.result_type, "Result")
        self.assertEquals(r.origin_url, "originurl")
        self.assertEquals(r.origin_code, 666)
    def test___init__target(self):
        r = self.Result("originurl", 666, target_url="targeturl", target_code=777, target_time=42.0)
        self.assertEquals(r.target_url, "targeturl")
        self.assertEquals(r.target_code, 777)
        self.assertEquals(r.target_time, 42.0)
        self.assertEquals(r.comparisons, {})
        self.assertTrue("comp={}" in r.__str__())
 
    def test___init__html_errors(self):
        r = self.Result("originurl", 200, origin_html_errors=["bad"], target_html_errors=["ugly"])
    def test___init__comparisons(self):
        r = self.Result("originurl", 666, target_url="targeturl", target_code=777, comparisons={'fee': 42, 'fi':666, 'foo':0xDeadBeef})
        self.assertEquals(r.comparisons, {'fee': 42, 'fi':666, 'foo':0xDeadBeef})
 
    def test_subclasses(self):