'Test to assert the number of seats
purchased using individual purchases.'

def test_get_self_purchased_seat_count(self):

    PaidCourseRegistration.add_to_order(self.cart, self.course_key)
    self.cart.purchase()
    test_student = UserFactory.create()
    test_student.set_password('password')
    test_student.save()
    self.cart = Order.get_cart_for_user(test_student)
    PaidCourseRegistration.add_to_order(self.cart, self.course_key)
    self.cart.purchase()
    total_seats_count = PaidCourseRegistration.get_self_purchased_seat_count(course_key=self.course_key)
    self.assertTrue(total_seats_count, 2)
