base: Make string_cast_int a classmethod
It doesn't depend on any internal data, and this lets us test it
without creating a Base instance.
@@ -190,7 +190,8 @@ class Base(object):
self.line_array.append(line)
self.data_array.append(data)
- def string_cast_int(self, string):
+ @classmethod
+ def string_cast_int(cls, string):
"""
Attempt to convert string to an int
