71: Brian Okken: Testing Embedded Systems & More with Python
with Python
About this episode
Python Testing Embedded Systems & More
Today we’ll be test talking with Brian Okken, author of Python Testing with UnitTest, Nose & Pytest, and host of the new Python Test Podcast. Get ready to discover some cool Python testing techniques, including how to use Python for embedded testing and more.

Brian a lead software engineer who spends 70% of my time programming and about 30% of his time doing team lead stuff.
He received my MSCS from the University of Oregon in 1996.
Since then he's been developing software in the Test and Measurement industry.
Brian's worked with lots and lots of EEs and learned a thing or two about measurement instruments, and many types of measurements. He's worked on oscilloscopes, spectrum analyzers, communication test systems, and test systems with 1 to 5 racks of instruments. And for more then 10 years, Brian's been on projects that have used Python to test the functionality of instruments though their remote APIs.
Quotes & Insights from this Test Talk
- I think the lesson we learned from test driven development is that test is really, really important, and it makes everything go easier if you figure that out first. If there's no QA team, there's nobody doing that, so I think developers have to be involved.
- Yeah, I love Python a lot more than C++ now. You can get so much done way faster. In our situation, I think it helps. The hard part is I need to convince C++ developers that they need to learn Python, but it's taking less convincing nowadays.
- Micro Python has come out, and it's supposedly super fast, so we may be changing soon. Not our company, but I think the industry as a whole may be having to reconsider that notion that C++ is a requirement for every fast interaction.
- I think the internet of things, the raspberry pie and the other small boards to let people tinker with stuff has actually exploded the use of Python for hardware.
- If you're not already using setup and tear down fixtures, and go ahead and use those. Don't be afraid of classes within testing.
- I'm from Oregon, and we … I don't know if it's just us, but we think about things a little differently. There was a t-shirt that I saw in college that said, “Conventional wisdom is seldom both." I actually think like that a lot now, and so there's … When you get to the point where somebody says, “Oh yeah, we always do that because it's just the right way," I think it's important for everybody to at least shine some light on it and make sure they understand why it's the right thing to do before they just go off and follow what the conventional wisdom is.
The beauty of testing is that it gives you the freedom to refactor without fear @brianokken
Resources
- MicroPython – Python for microcontrollers
- Python Testing with UnitTest, Nose & Pytest
- Team Geek: A Software Developer's Guide to Working Well with Others
Connect with Brian
- Twitter:@brianokken
- Blog: Python Testing
May I Ask You For a Favor?
Thanks again for listening to the show. If it has helped you in any way, shape or form, please share it using the social media buttons you see on the page.
Additionally, reviews for the podcast on iTunes are extremely helpful and greatly appreciated! They do matter in the rankings of the show and I read each and every one of them.

Special offer for TestTalks listeners, get 20 hours of automated testing for free when you sign-up with promo code testtalks14 (more info).
Keep listening
Related episodes

Automation Testing Podcast · Ep. 609
Why Your AI Tests Pass When Your Features Fail with Donovan Brady
with Donovan Brady
Why Your AI Tests Pass When Your Features Fail? Donovan Brady of Leapwork shows how to make
Oct 27

Automation Testing Podcast · Ep. 608
Scary Test Automation POCs Made Easy: Halloween Special With Paul Grossman
with Paul Grossman
Running a proof of concept on test automation tools can feel like a horror movie. Vendors promise
Oct 20

Automation Testing Podcast · Ep. 607
Locust and Azure Load Testing: Create and Debug Load Tests with AI with Lars Holmberg and Abhinav Premsekhar
with Lars Holmberg and Abhinav Premsekhar
Performance testing has never been easier to start, or more important to get right. As teams ship
Oct 6

Automation Testing Podcast · Ep. 606
AI Agents Passed the Tests. Real Devices Didn’t. with Nick Metcalfe
with Nick Metcalfe
Cloud device farms make it easy to get started with real device testing. But what happens when
Sep 29
