コード例 #1
0
	def testsimilarity(self):
		vcard = vCardWithMatches(vCard(name="rasmus halland"))
		vcard.emails.add("*****@*****.**")
		vcard2 = vCardWithMatches(vCard(name="rasmus lolland"))
		vcard2.emails.add("*****@*****.**")
		self.assertTrue(vcard.matches(vcard2))
コード例 #2
0
 def testsimilarity(self):
     vcard = vCardWithMatches(vCard(name="rasmus halland"))
     vcard.emails.add("*****@*****.**")
     vcard2 = vCardWithMatches(vCard(name="rasmus lolland"))
     vcard2.emails.add("*****@*****.**")
     self.assertTrue(vcard.matches(vcard2))
コード例 #3
0
	def testgetvCardNames_NoInput(self):
		vcard = vCard()
		self.assertEqual("",vcard.name)
		self.assertEqual([],vcard.emails)
		self.assertEqual(set([]),getvCardNames(vcard))
コード例 #4
0
 def testgetvCardNames_NoInput(self):
     vcard = vCard()
     self.assertEqual("", vcard.name)
     self.assertEqual([], vcard.emails)
     self.assertEqual(set([]), getvCardNames(vcard))