예제 #1
0
    def test_properties(self):
        impression = Impression()
        impression.user_ip = '192.168.1.100'
        impression.location = 'http://example.com/profile/'
        impression.user_agent = 'Mozilla/5.0'

        self.assertEquals('192.168.1.100', impression.user_ip)
        self.assertEquals('http://example.com/profile/', impression.location)
        self.assertEquals('Mozilla/5.0', impression.user_agent)
예제 #2
0
def test_properties():
    impression = Impression()
    impression.user_ip = '192.168.1.100'
    impression.location = 'http://example.com/profile/'
    impression.user_agent = 'Mozilla/5.0'

    eq_(impression.user_ip, '192.168.1.100')
    eq_(impression.location, 'http://example.com/profile/')
    eq_(impression.user_agent, 'Mozilla/5.0')
예제 #3
0
    def test_properties(self):
        impression = Impression()
        impression.user_ip = '192.168.1.100'
        impression.location = 'http://example.com/profile/'
        impression.user_agent = 'Mozilla/5.0'

        self.assertEquals('192.168.1.100', impression.user_ip)
        self.assertEquals('http://example.com/profile/', impression.location)
        self.assertEquals('Mozilla/5.0', impression.user_agent)