<s> import unittest <EOL> import math <EOL> import numpy <EOL> import pyglet <EOL> from pygly . viewport import Viewport <EOL> class test_viewport ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_viewport_creation ( self ) : <EOL> window = pyglet . window . Window ( <EOL> fullscreen = False , <EOL> width = <NUM_LIT> , <EOL> height = <NUM_LIT> <EOL> ) <EOL> viewport = Viewport ( <EOL> [ <EOL> [ <NUM_LIT:0> , <NUM_LIT:0> ] , <EOL> [ <NUM_LIT> , <NUM_LIT> ] <EOL> ] <EOL> ) <EOL> self . assertEqual ( <EOL> viewport . x , <EOL> <NUM_LIT:0> , <EOL> "<STR_LIT>" <EOL> ) <EOL> self . assertEqual ( <EOL> viewport . y , <EOL> <NUM_LIT:0> , <EOL> "<STR_LIT>" <EOL> ) <EOL> self . assertEqual ( <EOL> viewport . width , <EOL> <NUM_LIT> , <EOL> "<STR_LIT>" <EOL> ) <EOL> self . assertEqual ( <EOL> viewport . height , <EOL> <NUM_LIT> , <EOL> "<STR_LIT>" <EOL> ) <EOL> self . assertEqual ( <EOL> viewport . aspect_ratio , <EOL> <NUM_LIT> , <EOL> "<STR_LIT>" <EOL> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
