Unit test question

In python, in unit test, why do we use
if __name__ =='__main__': unittest.main()

at the end? And since we import unittest, shouldn’t name be “unittest”?