'should throw an error if any write methods are called'

def test_writemethods(self):

    source = (str(x) for x in range(1, 10))
    provider = self.provider_class(source)
    def call_method(provider, method_name, *args):
        method = getattr(provider, method_name)
        return method(*args)
    self.assertRaises(NotImplementedError, call_method, provider, 'truncate', 20)
    self.assertRaises(NotImplementedError, call_method, provider, 'write', 'bler')
    self.assertRaises(NotImplementedError, call_method, provider, 'writelines', ['one', 'two'])
