예제 #1
0
 def test_presence_join_unicode(self):
   self.assertEquals(u'c\xe4, ci, co', presence.location({
     'cell': {'name': u'c\xe4'},
     'city': {'name': u'ci'},
     'country': {'name': u'co'}}))
예제 #2
0
 def test_presence_cell(self):
   self.assertEquals(u'ce', presence.location({'cell': {'name': u'ce'}}))
예제 #3
0
 def test_presence_base(self):
   self.assertEquals(u'ba', presence.location(
       {'base': {'current': {'name': u'ba'}}}))
예제 #4
0
 def test_presence_city(self):
   self.assertEquals(u'ci', presence.location({'city': {'name': u'ci'}}))
예제 #5
0
 def test_presence_country(self):
   self.assertEquals(u'co', presence.location({'country': {'name': u'co'}}))
예제 #6
0
 def test_presence_str(self):
   self.assertEquals(u'str', presence.location(u'str'))