red-hat-storage / rhcephcompose

A tool to compose releases of Red Hat Ceph Storage for Ubuntu
MIT License
1 stars 1 forks source link

build / artifacts: use re.match() rather than search() #45

Closed ktdreyer closed 7 years ago

ktdreyer commented 7 years ago

name_version_re is already supposed to match the beginning of the string, so use re.match().

The purpose of this change is to clarify the intention of these property methods and optimize the code.

For the Build class, add unit tests to verify that these properies are correctly set.