'Makes sure chunk_bytes works correctly'

def test_chunk_bytes(self):

    result = list(FakeAsgiHandler.chunk_bytes(''))
    self.assertEqual(len(result), 1)
    self.assertEqual(result[0][0], '')
    self.assertEqual(result[0][1], True)
    result = list(FakeAsgiHandler.chunk_bytes('12345678901234567890123456789'))
    self.assertEqual(len(result), 1)
    self.assertEqual(result[0][0], '12345678901234567890123456789')
    self.assertEqual(result[0][1], True)
    result = list(FakeAsgiHandler.chunk_bytes('123456789012345678901234567890'))
    self.assertEqual(len(result), 1)
    self.assertEqual(result[0][0], '123456789012345678901234567890')
    self.assertEqual(result[0][1], True)
    result = list(FakeAsgiHandler.chunk_bytes('123456789012345678901234567890a'))
    self.assertEqual(len(result), 2)
    self.assertEqual(result[0][0], '123456789012345678901234567890')
    self.assertEqual(result[0][1], False)
    self.assertEqual(result[1][0], 'a')
    self.assertEqual(result[1][1], True)
