Exemplo n.º 1
0
 def setUp(self):
     self.chint = categoryHinter()
     self.chint.addHint("Dues", "dues")
     self.ac111 = ambiguousCluster(ambiguousNumber("111", {}), None)
     self.ac222 = ambiguousCluster(ambiguousNumber("222", {}), None)
     self.ac333 = ambiguousCluster(ambiguousNumber("333", {}), None)
     self.ac444 = ambiguousCluster(ambiguousNumber("444", {}), None)
Exemplo n.º 2
0
 def testInitNumsNumber(self):
     n = ambiguousNumber('1',{})
     ret = self.c.init_nums(n)
     self.assertEqual(ret,[1])
Exemplo n.º 3
0
 def testInitInfoAmbiguousNumber(self):
     n = ambiguousNumber('1',{'key1':'val1'})
     ret = self.c.init_info( n, {})
     self.assertEqual(ret['key1'],'val1')
Exemplo n.º 4
0
 def setUp(self):
     self.n = ambiguousNumber( '123', {})
Exemplo n.º 5
0
 def setUp(self):
     self.a = ambiguousNumber( '1', {'category':'mycat'})
     #
     # Use copy, not deepcopy, for this class, it's lighter and it works.
     self.b = copy( self.a )
Exemplo n.º 6
0
 def setUp(self):
     self.n = ambiguousNumber( '1000', {'category':'Dunno'})
Exemplo n.º 7
0
 def setUp(self):
     self.n = ambiguousNumber( '000', {})