Specification for cognito resource and testing with pytest?

Hi,

I am very new to Serverless and I am struggling with a couple of things:

  1. where to find out where is the specification for various resources that is supported by the framework is located. Example, what would be the attributes to be used for creating a userpool in Cognito. Are all the attributes from SAM supported ? Can someone point me to the correct location?

  2. It is not clear how i could run unit tests for Python. I saw the learning tutorial where there is some instruction on how to go about with Javascript. Again could someone point me how to set up sls to work against pytest?

Thanks in advance.
Also