示例#1
0
 def test_parse_size1(self) :
     data = '5m'
     expects = 5*1024*1024
     self.assert_(expects == chaski_config.parse_size(data))
示例#2
0
 def test_parse_size3(self) :
     data = ' 1024 '
     expects = 1024
     self.assert_(expects == chaski_config.parse_size(data))
示例#3
0
 def test_parse_size0(self) :
     data = '2G'
     expects = 2*1024*1024*1024
     self.assert_(expects == chaski_config.parse_size(data))