def test_parse_size1(self) : data = '5m' expects = 5*1024*1024 self.assert_(expects == chaski_config.parse_size(data))
def test_parse_size3(self) : data = ' 1024 ' expects = 1024 self.assert_(expects == chaski_config.parse_size(data))
def test_parse_size0(self) : data = '2G' expects = 2*1024*1024*1024 self.assert_(expects == chaski_config.parse_size(data))