input: Write a function to create a linked list class with a constructor to initialize the list node. Ensure that each node contains data and a reference to the next node. Additionally, provide an `assert` test case to verify if the class is created correctly.
  assert ListNode(5) != None
output: class ListNode:
      def __init__(self, data=None):
          self.data = data
          self.next = None